﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;

namespace projet_fichier_objet
{
    public class Personne
    {
        //todo revoir string / int et datetime
        public int ID { get; set; }
        public string Nom { get; set; }
        public string Email { get; set; }
        public string Ville { get; set; }
        public DateTime DateNaissance { get; set; }
        public int CodeAgence { get; set; }

        

        public string FormatIdentitePipe
        {
            get
            {
                string Date = this.DateNaissance.ToString("d");
                return this.ID + "|" + this.Nom + "|" + this.Email + "|" + this.Ville + "|" + Date;
            }
        }

       
        //public override string ToString()
        //{
        //    return this.Nom + " "+ this.ID ;
        //}

       
    }
}
